<?php 
include_once("../public/head.php");
$id=$_GET['id'];
include_once('../../public/function.php');
$config = include_once('../../public/config.php');
$result=aselect($config,'lanmu',$id );
// var_dump($result);
 ?>



<!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="../index.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="./lanmu.php">作品管理</a><span class="crumb-step">&gt;</span><span>编辑栏目</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <form action="doupdate.php" method="post">
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
             
                        </tr>
                            <tr>
                                <th><i class="require-red">*</i>栏目标题：</th>
                                <input  type="hidden" value="<?php echo $id; ?>" name="id"> 
                                <td>
                                    <input class="common-text required" id="title" name="name" size="50" value="<?php echo $result[0]['name'] ?>" type="text">
                                </td>
                            </tr>
                           
                            <tr>
                                <th>栏目内容：</th>
                                <td><textarea name="miaoshu" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10"><?php echo $result[0]['miaoshu'] ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-reg">*</i>状态：</th>
                                <td>
                                    <input class="" id="title" name="status" size="50" value="T" type="radio" <?php echo $result[0]['status']=="T"?'checked':''?>>正常
                                    <input class="" id="" name="status" size="50" value="F" type="radio" <?php echo $result[0]['status']=="F"?'checked':''?>>禁止
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->

    <?php 
       include_once("../public/end.php")
     ?>